var aUi = aUi || {};
aUi.onShelf = {
	// 增加仓库
	_addrecordList: function(data) {
		
		var auditor = "未知人员";
		if(data.auditor != null){
			auditor = data.auditor;
		}
		
		var html = '<li data-id="'+data.id +'" class="mui-table-view-cell mui-media item-cell" style="display:;">'+
			'<div class="content-top">'+
				'<div class="top-title">上架单号：'+data.putonno+'</div>'+
			'</div>'+
			'<div class="top-line"></div>'+
			'<div class="content-mid">'+
				'<div class="left-image">'+
					'<img class="" src="../../../../images/comman/icon_location.png">'+
				'</div>'+
				'<div class="mid-text">'+
					'<div class="left-text">'+
						'<p class="cell-title">'+data.locatorname+'</p>'+
						'<p class="cell-time">'+data.locatorcode+'</p>'+
					'</div>'+
					'<div class="right-text">'+
						'<p >'+data.stateName+'</p>'+
						'<p ></p>'+
					'</div>'+
				'</div>'+
			'</div>'+
			'<div class="top-line2"></div>'+
			'<div class="bottom-content">'+
				'<div class="user">'+
					'<div class="avarimage">'+
						'<img class="" src="../../../../images/me/icon_avatar.png">'+
					'</div>'+
					'<div class="name">'+auditor+'</div>'+
				'</div>'+
				'<div class="time">'+data.createtime+'</div>'+
			'</div>'+
		'</li>';
		return html;
	},
	
	
	recordList: function(list) {
		var html = "";
		for (var i = 0; i < list.length; i++) {
			var data = list[i];
			html += this._addrecordList(data);
		}
		return html;
	},
    
};
